.class public Lcom/burstly/lib/service/ServerConfigurationService;
.super Ljava/lang/Object;
.source "ServerConfigurationService.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;,
        Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;
    }
.end annotation


# static fields
.field static final CONFIGURATION_DATA:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field static final RECIPIENTS:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;",
            ">;"
        }
    .end annotation
.end field

.field static final TAG:Ljava/lang/String;

.field static sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

.field static sFileHandler:Lcom/burstly/lib/persistance/ObjectSaveLoadHandler;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/burstly/lib/persistance/ObjectSaveLoadHandler",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field static sLoadConfig:Z

.field static sTestConfiguration:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 57
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 62
    const-class v0, Lcom/burstly/lib/service/ServerConfigurationService;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    .line 67
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->RECIPIENTS:Ljava/util/Set;

    .line 72
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->CONFIGURATION_DATA:Ljava/util/HashMap;

    .line 111
    const/4 v0, 0x1

    sput-boolean v0, Lcom/burstly/lib/service/ServerConfigurationService;->sLoadConfig:Z

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 234
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 235
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 52
    invoke-static {p0}, Lcom/burstly/lib/service/ServerConfigurationService;->safeApplyConfiguration(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V

    return-void
.end method

.method public static declared-synchronized addRecipient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V
    .locals 7
    .parameter "recipient"

    .prologue
    .line 382
    const-class v2, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v2

    if-eqz p0, :cond_1

    .line 383
    :try_start_0
    new-instance v0, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;

    invoke-direct {v0, p0}, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;-><init>(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V

    .line 384
    .local v0, configurationTaskWrapper:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v4, "Adding new recipient {0}"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    aput-object p0, v5, v6

    invoke-virtual {v1, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 385
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->RECIPIENTS:Ljava/util/Set;

    invoke-interface {v1, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 386
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v4, "This {0} recipient has already been added."

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    aput-object p0, v5, v6

    invoke-virtual {v1, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 388
    :cond_0
    invoke-static {v0}, Lcom/burstly/lib/service/ServerConfigurationService;->enqueueConfiguration(Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 390
    .end local v0           #configurationTaskWrapper:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    :cond_1
    monitor-exit v2

    return-void

    .line 382
    :catchall_0
    move-exception v1

    monitor-exit v2

    throw v1
.end method

.method private static declared-synchronized createExecutor()V
    .locals 5

    .prologue
    .line 357
    const-class v1, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    if-nez v0, :cond_0

    .line 358
    const/4 v0, 0x1

    new-instance v2, Lcom/burstly/lib/service/ServerConfigurationService$3;

    invoke-direct {v2}, Lcom/burstly/lib/service/ServerConfigurationService$3;-><init>()V

    invoke-static {v0, v2}, Ljava/util/concurrent/Executors;->newFixedThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ThreadPoolExecutor;

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 368
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    const-wide/16 v2, 0x12c

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v0, v2, v3, v4}, Ljava/util/concurrent/ThreadPoolExecutor;->setKeepAliveTime(JLjava/util/concurrent/TimeUnit;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 374
    :cond_0
    monitor-exit v1

    return-void

    .line 357
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private static createFileHandler(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3
    .parameter "context"
    .parameter "pubId"

    .prologue
    .line 285
    new-instance v0, Lcom/burstly/lib/persistance/ObjectSaveLoadHandler;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "server_cfg_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/burstly/lib/persistance/ObjectSaveLoadHandler;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    sput-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sFileHandler:Lcom/burstly/lib/persistance/ObjectSaveLoadHandler;

    .line 286
    return-void
.end method

.method private static createLoadCfgRunnable(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/Runnable;
    .locals 1
    .parameter "context"
    .parameter "publisherId"

    .prologue
    .line 296
    new-instance v0, Lcom/burstly/lib/service/ServerConfigurationService$2;

    invoke-direct {v0, p1, p0}, Lcom/burstly/lib/service/ServerConfigurationService$2;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    return-object v0
.end method

.method public static enableTestConfiguration(Ljava/lang/String;)V
    .locals 0
    .parameter "configuration"

    .prologue
    .line 505
    sput-object p0, Lcom/burstly/lib/service/ServerConfigurationService;->sTestConfiguration:Ljava/lang/String;

    .line 506
    return-void
.end method

.method private static enqueueConfiguration(Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;)V
    .locals 6
    .parameter "recipient"

    .prologue
    .line 435
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadPoolExecutor;->isShutdown()Z

    move-result v0

    if-nez v0, :cond_0

    .line 436
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v0, p0}, Ljava/util/concurrent/ThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;->setRunningTask(Ljava/util/concurrent/Future;)V

    .line 437
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v2, "Working queue size {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    sget-object v5, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v5}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/concurrent/BlockingQueue;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 439
    :cond_0
    return-void
.end method

.method static declared-synchronized getRecipientsSnapshot()Ljava/util/Set;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Set",
            "<",
            "Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;",
            ">;"
        }
    .end annotation

    .prologue
    .line 496
    const-class v1, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v1

    :try_start_0
    new-instance v0, Ljava/util/HashSet;

    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->RECIPIENTS:Ljava/util/Set;

    invoke-direct {v0, v2}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v1

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private static getWrapperByRecepient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    .locals 4
    .parameter "recipient"

    .prologue
    .line 448
    const/4 v0, 0x0

    .line 449
    .local v0, conf:Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;
    invoke-static {}, Lcom/burstly/lib/service/ServerConfigurationService;->getRecipientsSnapshot()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;

    .line 450
    .local v2, wrp:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    invoke-virtual {v2}, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;->getRecepient()Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 454
    .end local v2           #wrp:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    :goto_0
    return-object v2

    :cond_1
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static declared-synchronized initService(Landroid/content/Context;Ljava/lang/String;)V
    .locals 6
    .parameter "context"
    .parameter "publisherId"

    .prologue
    .line 244
    const-class v5, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v5

    :try_start_0
    invoke-static {}, Lcom/burstly/lib/service/ServerConfigurationService;->createExecutor()V

    .line 245
    invoke-static {p0, p1}, Lcom/burstly/lib/service/ServerConfigurationService;->createFileHandler(Landroid/content/Context;Ljava/lang/String;)V

    .line 246
    invoke-static {p0, p1}, Lcom/burstly/lib/service/ServerConfigurationService;->createLoadCfgRunnable(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/Runnable;

    move-result-object v2

    .line 247
    .local v2, loadConfig:Ljava/lang/Runnable;
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 248
    .local v0, configurator:Ljava/util/concurrent/ThreadPoolExecutor;
    new-instance v4, Lcom/burstly/lib/service/ServerConfigurationService$1;

    invoke-direct {v4, v0, v2}, Lcom/burstly/lib/service/ServerConfigurationService$1;-><init>(Ljava/util/concurrent/ThreadPoolExecutor;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v4}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    .line 273
    invoke-static {}, Lcom/burstly/lib/service/ServerConfigurationService;->getRecipientsSnapshot()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;

    .line 274
    .local v3, recipient:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    invoke-static {v3}, Lcom/burstly/lib/service/ServerConfigurationService;->enqueueConfiguration(Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 244
    .end local v0           #configurator:Ljava/util/concurrent/ThreadPoolExecutor;
    .end local v1           #i$:Ljava/util/Iterator;
    .end local v2           #loadConfig:Ljava/lang/Runnable;
    .end local v3           #recipient:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    :catchall_0
    move-exception v4

    monitor-exit v5

    throw v4

    .line 276
    .restart local v0       #configurator:Ljava/util/concurrent/ThreadPoolExecutor;
    .restart local v1       #i$:Ljava/util/Iterator;
    .restart local v2       #loadConfig:Ljava/lang/Runnable;
    :cond_0
    monitor-exit v5

    return-void
.end method

.method public static declared-synchronized removeRecipient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V
    .locals 9
    .parameter "recipient"

    .prologue
    .line 398
    const-class v3, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v3

    if-eqz p0, :cond_0

    :try_start_0
    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    if-eqz v2, :cond_0

    .line 399
    invoke-static {p0}, Lcom/burstly/lib/service/ServerConfigurationService;->getWrapperByRecepient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;

    move-result-object v1

    .line 400
    .local v1, wrp:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    if-eqz v1, :cond_0

    .line 401
    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v4, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v5, "Removing recipient {0}"

    const/4 v6, 0x1

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object p0, v6, v7

    invoke-virtual {v2, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 402
    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->RECIPIENTS:Ljava/util/Set;

    invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 403
    invoke-virtual {v1}, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;->isScheduledInExecutor()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 404
    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v2}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;

    move-result-object v0

    .line 405
    .local v0, queue:Ljava/util/concurrent/BlockingQueue;,"Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;"
    invoke-virtual {v1}, Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;->getRunningTask()Ljava/util/concurrent/Future;

    move-result-object v2

    const/4 v4, 0x1

    invoke-interface {v2, v4}, Ljava/util/concurrent/Future;->cancel(Z)Z

    .line 406
    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v4, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v5, "Working queue size {0}"

    const/4 v6, 0x1

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->size()I

    move-result v8

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    aput-object v8, v6, v7

    invoke-virtual {v2, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 410
    .end local v0           #queue:Ljava/util/concurrent/BlockingQueue;,"Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;"
    .end local v1           #wrp:Lcom/burstly/lib/service/ServerConfigurationService$ConfigurationTaskWrapper;
    :cond_0
    monitor-exit v3

    return-void

    .line 398
    :catchall_0
    move-exception v2

    monitor-exit v3

    throw v2
.end method

.method private static safeApplyConfiguration(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V
    .locals 6
    .parameter "recipient"

    .prologue
    .line 418
    if-eqz p0, :cond_0

    .line 420
    :try_start_0
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    const-string v3, "Running configuration for {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object p0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 421
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->CONFIGURATION_DATA:Ljava/util/HashMap;

    invoke-interface {p0, v1}, Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;->configure(Ljava/util/Map;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 427
    :cond_0
    :goto_0
    return-void

    .line 423
    :catch_0
    move-exception v0

    .line 424
    .local v0, exception:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/service/ServerConfigurationService;->TAG:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public static declared-synchronized shutdown()V
    .locals 3

    .prologue
    .line 461
    const-class v2, Lcom/burstly/lib/service/ServerConfigurationService;

    monitor-enter v2

    :try_start_0
    sget-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    if-eqz v1, :cond_0

    .line 462
    sget-object v0, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 463
    .local v0, configurationService:Ljava/util/concurrent/ExecutorService;
    const/4 v1, 0x0

    sput-object v1, Lcom/burstly/lib/service/ServerConfigurationService;->sConfigurator:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 464
    new-instance v1, Lcom/burstly/lib/service/ServerConfigurationService$4;

    invoke-direct {v1, v0}, Lcom/burstly/lib/service/ServerConfigurationService$4;-><init>(Ljava/util/concurrent/ExecutorService;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 486
    :cond_0
    monitor-exit v2

    return-void

    .line 461
    :catchall_0
    move-exception v1

    monitor-exit v2

    throw v1
.end method
